package com.uniview.entity.po;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * 资源访问权限表
 * 
 */
@Entity
@Table(name = "sd_resource_role")
public class ResourceRole implements Serializable {
	private static final long serialVersionUID = 3814595106034559488L;
	
	public int rmId;
	
	public int menuId;  //资源id
	
	public int roleId;  //角色id

	public ResourceRole () {};
	
	public ResourceRole (int menuId, int roleId) {
		this.menuId = menuId;
		this.roleId = roleId;
	}
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public int getRmId() {
		return rmId;
	}

	public void setRmId(int rmId) {
		this.rmId = rmId;
	}

	public int getMenuId() {
		return menuId;
	}

	public void setMenuId(int menuId) {
		this.menuId = menuId;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}
}